import request from '@/utils/request'

const cityApi = {
  postProposerExamineBatch: '/api/OAB_Proposer/postProposerExamine_Batch',
  getCityYdsb: '/api/ydsb/getCityYdsb',
  getCityYdsbTZ: '/api/ydsb/getCityYdsbTZ',
  getHousesCountSJ: '/api/OAB_SysObject/getHousesCountSJ',
  getAlterHistoryList: '/api/OAB_Proposer/getAlterListbyID',
  getCompareMZHH: '/api/OAB_SysObject/getCompareMZHH',
  getAlterDetail: 'api/ydsb/Get_YDSBDetail',
  getChangeHouseList: '/api/HT_HF/get_HFList',
  postChangeHouseApplication: '/api/HT_HF/Post_ZC_HT_HF',
  postChangeHouseAudit: '/api/HT_HF/Post_HTHFSH',
  getCityButionManagement: '/api/distributionmanagement/getDistributionManagement',
  postUpdateReturn: '/api/distributionmanagement/postUpdateReturn',
  getAssignmentList: '/api/assignment/getAssignmentList',
  postAssignment: '/api/assignment/postAssignment',
  getDocumentAutoList: '/api/archives/getDocumentAutoList',
  getGZDThtml: '/api/OAB_SysObject/getGZDThtml',
  getKZQRXQXM: '/api/OAB_SysObject/getKZQRXQXM',
  postUpdateReturnList: '/api/distributionmanagement/postUpdateReturnList',
  postAssignmentList: '/api/assignment/postAssignmentList',

  postSubMainHouses: '/api/OAB_Proposer/SubMainHouses',
}

export function postProposerExamineBatch(data) {
  return request({
    url: cityApi.postProposerExamineBatch,
    method: 'post',
    data,
  })
}

export function getCityYdsb(params) {
  return request({
    url: cityApi.getCityYdsb,
    method: 'get',
    params,
  })
}

export function getCityYdsbTZ(params) {
  return request({
    url: cityApi.getCityYdsbTZ,
    method: 'get',
    params,
  })
}

export function getHousesCountSJ(params) {
  return request({
    url: cityApi.getHousesCountSJ,
    method: 'get',
    params,
  })
}

export function getAlterHistoryList(params) {
  return request({
    url: cityApi.getAlterHistoryList,
    method: 'get',
    params,
  })
}

export function getCompareMZHH(params) {
  return request({
    url: cityApi.getCompareMZHH,
    method: 'get',
    params,
  })
}

export function getAlterDetail(params) {
  return request({
    url: cityApi.getAlterDetail,
    method: 'get',
    params,
  })
}

export function getChangeHouseList(params) {
  return request({
    url: cityApi.getChangeHouseList,
    method: 'get',
    params,
  })
}

export function postChangeHouseApplication(data) {
  return request({
    url: cityApi.postChangeHouseApplication,
    method: 'post',
    data,
  })
}

export function postChangeHouseAudit(data) {
  return request({
    url: cityApi.postChangeHouseAudit,
    method: 'post',
    data,
  })
}

export function getCityButionManagement(params) {
  return request({
    url: cityApi.getCityButionManagement,
    method: 'get',
    params,
  })
}

export function postUpdateReturn(params) {
  return request({
    url: cityApi.postUpdateReturn,
    method: 'get',
    params,
  })
}

export function getAssignmentList(params) {
  return request({
    url: cityApi.getAssignmentList,
    method: 'get',
    params,
  })
}

export function postAssignment(data) {
  return request({
    url: cityApi.postAssignment,
    method: 'post',
    data,
  })
}

export function getDocumentAutoList(params) {
  return request({
    url: cityApi.getDocumentAutoList,
    method: 'get',
    params,
  })
}

export function getGZDThtml(params) {
  return request({
    url: cityApi.getGZDThtml,
    method: 'get',
    params,
  })
}

export function getKZQRXQXM(params) {
  return request({
    url: cityApi.getKZQRXQXM,
    method: 'get',
    params,
  })
}

export function postUpdateReturnList(data) {
  return request({
    url: cityApi.postUpdateReturnList,
    method: 'post',
    data,
  })
}

export function postAssignmentList(data) {
  return request({
    url: cityApi.postAssignmentList,
    method: 'post',
    data,
  })
}
// 提交占用公租房现象
export function postSubMainHouses(data) {
  return request({
    url: cityApi.postSubMainHouses,
    method: 'post',
    data,
  })
}
